<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="../common/baseCss.jsp" %>
<title>更新实名认证 - 管理员管理</title>
</head>
<body>
	<article class="page-container">
		<form method="post" class="form form-horizontal" id="realNameAuthEditForm" enctype="multipart/form-data">
			<input type="hidden" id="uid" name="uid" value="${realNameAuth.uid}">
			<input type="hidden" id="oriState" name="oriState" value="${realNameAuth.state}">
			<input type="hidden" name="dr" value="1">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">真实姓名：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" value="${realNameAuth.realName}" id="realName" name="realName" readonly="readonly">
				</div>
			</div>
			
			<!-- 认证成功只显示 真实姓名,认证状态,认证结果 -->
			<c:if test="${realNameAuth.state != 2}">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">证件类型：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<c:if test="${realNameAuth.creType == 0}">
							<input type="text" class="input-text" value="身份证" readonly="readonly">
						</c:if>
						<c:if test="${realNameAuth.creType == 1}">
							<input type="text" class="input-text" value="护照" readonly="readonly">						
						</c:if>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">证件号：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" value="${realNameAuth.creNum}" id="creNum" name="creNum" readonly="readonly">
					</div>
				</div>
			
				<c:choose>
					<c:when test="${realNameAuth.creType == 0}">
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-3">证件照(人像面)：</label>
							<div class="formControls col-xs-4 col-sm-5">
								<img style="width: 100%; height: 100%" src="<%=basePath%>file/viewimg?fileName=${realNameAuth.creFrontPic}&type=3">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-3">证件照(国徽面)：</label>
							<div class="formControls col-xs-4 col-sm-5">
								<img style="width: 100%; height: 100%" src="<%=basePath%>file/viewimg?fileName=${realNameAuth.creReversePic}&type=3">
							</div>
						</div>
					</c:when>
					<c:otherwise>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-3">证件照：</label>
							<div class="formControls col-xs-4 col-sm-5">
								<img style="width: 100%; height: 100%" src="<%=basePath%>file/viewimg?fileName=${realNameAuth.creFrontPic}&type=3">
							</div>
						</div>
					</c:otherwise>
				</c:choose>
			</c:if>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">申请时间：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="cts" name="cts" value="<fmt:formatDate value='${realNameAuth.cts}' pattern='yyyy-MM-dd HH:mm:ss'/>" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">审核时间：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="mts" name="mts" value="<fmt:formatDate value='${realNameAuth.mts}' pattern='yyyy-MM-dd HH:mm:ss'/>" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">操作人：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="mUname" name="mUname" value="${realNameAuth.mUname}" disabled="disabled">
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">
					<span class="c-red">*</span>认证状态：
				</label>
				<div class="formControls col-xs-8 col-sm-9">
					<select id="state" name="state" class="select" style="width:200px;height:31px">
						<option value="1">认证中</option>
						<option value="2">认证成功</option>
						<option value="3">认证失败</option>
					</select>
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">
					<span class="c-red">*</span>认证结果：
				</label>
				<div class="formControls col-xs-8 col-sm-9">
					<textarea name="checkResult" style="resize:none" rows="5" cols="43" maxlength="200">${realNameAuth.checkResult}</textarea>
				</div>
			</div>
		
			<div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
					<button type="submit" class="btn btn-success radius">
						<i class="icon-ok"></i> 确定
					</button>
				</div>
			</div>
		</form>
	</article>

	<%@ include file="../common/baseJs.jsp" %>
	<script type="text/javascript" src="manager/js/realNameAuth/realNameAuth_edit.js"></script>
</body>
</html>